package ${packageName}.controller;

import ${packageName}.domain.${domainName};
import ${packageName}.service.${serviceName};
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;

@RestController
public class ${controllerName} {

    @Autowired
    private ${serviceName} ${serviceName?uncap_first};

    @GetMapping("/${domainName?lower_case}s")
    public List<${domainName}> getAll${domainName}s() {
        return ${serviceName?uncap_first}.getAll${domainName}s();
    }
}
